/*
 * Copyright (C) 2012  E-dance Studio Harbin Institute of Technology 
 * Project:campusmobile
 * Author: 初楷博
 * Create Date: 2012-6-4上午09:58:47
 */
package hit.edance.campusmobile.chat.model;

import hit.edance.campusmobile.chat.util.Util;

import java.util.Date;

/**   
 * 聊天Item，用户存取聊天记录
 * 
 * @Project campusmobile
 * @Package hit.edance.campusmobile.chat.model
 * @Class ChatItem
 * @Date 2012-6-4 上午09:58:47
 * @author 初楷博
 * @version 1.0
 * @since 1.0
 */
public class ChatItem {
	private String myid;
	private String itsid;
	private int tag;
	private Date time;
	private String content;
	
	/**
	 * @param myid
	 * @param itsid
	 * @param tag
	 * @param time
	 * @param content
	 */
	public ChatItem(String myid, String itsid, int tag, Date time,
			String content) {
		this.myid = myid;
		this.itsid = itsid;
		this.tag = tag;
		this.time = time;
		this.content = content;
	}
	/**
	 * @return the myid
	 */
	public String getMyid() {
		return myid;
	}
	/**
	 * @param myid the myid to set
	 */
	public void setMyid(String myid) {
		this.myid = myid;
	}
	/**
	 * @return the itsid
	 */
	public String getItsid() {
		return itsid;
	}
	/**
	 * @param itsid the itsid to set
	 */
	public void setItsid(String itsid) {
		this.itsid = itsid;
	}
	/**
	 * @return the tag
	 */
	public int getTag() {
		return tag;
	}
	/**
	 * @param tag the tag to set
	 */
	public void setTag(int tag) {
		this.tag = tag;
	}
	/**
	 * @return the time
	 */
	public Date getTime() {
		return time;
	}
	/**
	 * @param time the time to set
	 */
	public void setTime(Date time) {
		this.time = time;
	}
	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}
	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/* @see java.lang.Object#toString()
	 *toString
	 */
	@Override
	public String toString() {
		return "ChatItem [myid=" + myid + ", itsid=" + itsid + ", tag=" + tag
				+ ", time=" + Util.dateToString(time) + ", content=" + content + "]";
	}
	

}
